import Vue from 'vue';
import Vuex from 'vuex';
import cache from './cache';
import getters from './getters';

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    userInfo: {},
  },
  mutations: {
    setUserInfo(state, data) {
      state.userInfo = data;
    },
  },
  modules: {
    cache,
  },
  getters,
});
